package xframe.util.beans;


public class UploadFile{
    private String orgFileName;
    private String renamedFile;
    private long size;
    private String directoryPath;
    private String fileName;
    private String exe;	

    public UploadFile(String orgFileName, String renamedFile, long size, String directoryPath)
    {
        this.orgFileName = null;
        this.renamedFile = null;
        this.size = 0L;
        this.directoryPath = null;
        fileName = null;
        exe = null;
        this.orgFileName = orgFileName;
        this.renamedFile = renamedFile;
        this.size = size;
        this.directoryPath = directoryPath;
        if(orgFileName.lastIndexOf('.') > 0)
        {
            fileName = orgFileName.substring(0, orgFileName.lastIndexOf('.'));
            exe = orgFileName.substring(orgFileName.lastIndexOf('.') + 1);
        } else
        {
            fileName = orgFileName;
        }
    }

    public String getOrgFileName()
    {
        return orgFileName;
    }

    public void setOrgFileName(String orgFileName)
    {
        this.orgFileName = orgFileName;
    }

    public String getRenamedFile()
    {
        return renamedFile;
    }

    public void setRenamedFile(String renamedFile)
    {
        this.renamedFile = renamedFile;
    }

    public long getSize()
    {
        return size;
    }

    public void setSize(long size)
    {
        this.size = size;
    }

    public String getDirectoryPath()
    {
        return directoryPath;
    }

    public void setDirectoryPath(String directoryPath)
    {
        this.directoryPath = directoryPath;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getExe()
    {
        return exe;
    }

    public void setExe(String exe)
    {
        this.exe = exe;
    }


}
